home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / lib / ldscripts / elf_l1om.xsc < prev    next >
Text File  |  2009-10-29  |  7KB  |  202 lines

  1. /* Script for --shared -z combreloc: shared library, combine & sort relocs */
  2. OUTPUT_FORMAT("elf64-l1om", "elf64-l1om",
  3.           "elf64-l1om")
  4. OUTPUT_ARCH(l1om)
  5. ENTRY(_start)
  6. SEARCH_DIR("/usr/x86_64-linux-gnu/lib");
  7. SECTIONS
  8. {
  9.   /* Read-only sections, merged into text segment: */
  10.   . = SEGMENT_START("text-segment", 0) + SIZEOF_HEADERS;
  11.   .note.gnu.build-id : { *(.note.gnu.build-id) }
  12.   .hash           : { *(.hash) }
  13.   .gnu.hash       : { *(.gnu.hash) }
  14.   .dynsym         : { *(.dynsym) }
  15.   .dynstr         : { *(.dynstr) }
  16.   .gnu.version    : { *(.gnu.version) }
  17.   .gnu.version_d  : { *(.gnu.version_d) }
  18.   .gnu.version_r  : { *(.gnu.version_r) }
  19.   .rela.dyn       :
  20.     {
  21.       *(.rela.init)
  22.       *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  23.       *(.rela.fini)
  24.       *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  25.       *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  26.       *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
  27.       *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
  28.       *(.rela.ctors)
  29.       *(.rela.dtors)
  30.       *(.rela.got)
  31.       *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  32.       *(.rela.ldata .rela.ldata.* .rela.gnu.linkonce.l.*)
  33.       *(.rela.lbss .rela.lbss.* .rela.gnu.linkonce.lb.*)
  34.       *(.rela.lrodata .rela.lrodata.* .rela.gnu.linkonce.lr.*)
  35.       *(.rela.iplt)
  36.     }
  37.   .rela.plt       :
  38.     {
  39.       *(.rela.plt)
  40.     }
  41.   .init           :
  42.   {
  43.     KEEP (*(.init))
  44.   } =0x90909090
  45.   .plt            : { *(.plt) }
  46.   .iplt           : { *(.iplt) }
  47.   .text           :
  48.   {
  49.     *(.text.unlikely .text.*_unlikely)
  50.     *(.text .stub .text.* .gnu.linkonce.t.*)
  51.     /* .gnu.warning sections are handled specially by elf32.em.  */
  52.     *(.gnu.warning)
  53.   } =0x90909090
  54.   .fini           :
  55.   {
  56.     KEEP (*(.fini))
  57.   } =0x90909090
  58.   PROVIDE (__etext = .);
  59.   PROVIDE (_etext = .);
  60.   PROVIDE (etext = .);
  61.   .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
  62.   .rodata1        : { *(.rodata1) }
  63.   .eh_frame_hdr : { *(.eh_frame_hdr) }
  64.   .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  65.   .gcc_except_table   : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
  66.   /* Adjust the address for the data segment.  We want to adjust up to
  67.      the same address within the page on the next page up.  */
  68.   . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
  69.   /* Exception handling  */
  70.   .eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
  71.   .gcc_except_table   : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
  72.   /* Thread Local Storage sections  */
  73.   .tdata      : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
  74.   .tbss          : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
  75.   .preinit_array     :
  76.   {
  77.     KEEP (*(.preinit_array))
  78.   }
  79.   .init_array     :
  80.   {
  81.      KEEP (*(SORT(.init_array.*)))
  82.      KEEP (*(.init_array))
  83.   }
  84.   .fini_array     :
  85.   {
  86.     KEEP (*(.fini_array))
  87.     KEEP (*(SORT(.fini_array.*)))
  88.   }
  89.   .ctors          :
  90.   {
  91.     /* gcc uses crtbegin.o to find the start of
  92.        the constructors, so we make sure it is
  93.        first.  Because this is a wildcard, it
  94.        doesn't matter if the user does not
  95.        actually link against crtbegin.o; the
  96.        linker won't look for a file to match a
  97.        wildcard.  The wildcard also means that it
  98.        doesn't matter which directory crtbegin.o
  99.        is in.  */
  100.     KEEP (*crtbegin.o(.ctors))
  101.     KEEP (*crtbegin?.o(.ctors))
  102.     /* We don't want to include the .ctor section from
  103.        the crtend.o file until after the sorted ctors.
  104.        The .ctor section from the crtend file contains the
  105.        end of ctors marker and it must be last */
  106.     KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
  107.     KEEP (*(SORT(.ctors.*)))
  108.     KEEP (*(.ctors))
  109.   }
  110.   .dtors          :
  111.   {
  112.     KEEP (*crtbegin.o(.dtors))
  113.     KEEP (*crtbegin?.o(.dtors))
  114.     KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
  115.     KEEP (*(SORT(.dtors.*)))
  116.     KEEP (*(.dtors))
  117.   }
  118.   .jcr            : { KEEP (*(.jcr)) }
  119.   .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
  120.   .dynamic        : { *(.dynamic) }
  121.   .got            : { *(.got) *(.igot) }
  122.   . = DATA_SEGMENT_RELRO_END (24, .);
  123.   .got.plt        : { *(.got.plt)  *(.igot.plt) }
  124.   .data           :
  125.   {
  126.     *(.data .data.* .gnu.linkonce.d.*)
  127.     SORT(CONSTRUCTORS)
  128.   }
  129.   .data1          : { *(.data1) }
  130.   _edata = .; PROVIDE (edata = .);
  131.   __bss_start = .;
  132.   .bss            :
  133.   {
  134.    *(.dynbss)
  135.    *(.bss .bss.* .gnu.linkonce.b.*)
  136.    *(COMMON)
  137.    /* Align here to ensure that the .bss section occupies space up to
  138.       _end.  Align after .bss to ensure correct alignment even if the
  139.       .bss section disappears because there are no input sections.
  140.       FIXME: Why do we need it? When there is no .bss section, we don't
  141.       pad the .data section.  */
  142.    . = ALIGN(. != 0 ? 64 / 8 : 1);
  143.   }
  144.   .lbss   :
  145.   {
  146.     *(.dynlbss)
  147.     *(.lbss .lbss.* .gnu.linkonce.lb.*)
  148.     *(LARGE_COMMON)
  149.   }
  150.   . = ALIGN(64 / 8);
  151.   .lrodata   ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
  152.   {
  153.     *(.lrodata .lrodata.* .gnu.linkonce.lr.*)
  154.   }
  155.   .ldata   ALIGN(CONSTANT (MAXPAGESIZE)) + (. & (CONSTANT (MAXPAGESIZE) - 1)) :
  156.   {
  157.     *(.ldata .ldata.* .gnu.linkonce.l.*)
  158.     . = ALIGN(. != 0 ? 64 / 8 : 1);
  159.   }
  160.   . = ALIGN(64 / 8);
  161.   _end = .; PROVIDE (end = .);
  162.   . = DATA_SEGMENT_END (.);
  163.   /* Stabs debugging sections.  */
  164.   .stab          0 : { *(.stab) }
  165.   .stabstr       0 : { *(.stabstr) }
  166.   .stab.excl     0 : { *(.stab.excl) }
  167.   .stab.exclstr  0 : { *(.stab.exclstr) }
  168.   .stab.index    0 : { *(.stab.index) }
  169.   .stab.indexstr 0 : { *(.stab.indexstr) }
  170.   .comment       0 : { *(.comment) }
  171.   /* DWARF debug sections.
  172.      Symbols in the DWARF debugging sections are relative to the beginning
  173.      of the section so we begin them at 0.  */
  174.   /* DWARF 1 */
  175.   .debug          0 : { *(.debug) }
  176.   .line           0 : { *(.line) }
  177.   /* GNU DWARF 1 extensions */
  178.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  179.   .debug_sfnames  0 : { *(.debug_sfnames) }
  180.   /* DWARF 1.1 and DWARF 2 */
  181.   .debug_aranges  0 : { *(.debug_aranges) }
  182.   .debug_pubnames 0 : { *(.debug_pubnames) }
  183.   /* DWARF 2 */
  184.   .debug_info     0 : { *(.debug_info .gnu.linkonce.wi.*) }
  185.   .debug_abbrev   0 : { *(.debug_abbrev) }
  186.   .debug_line     0 : { *(.debug_line) }
  187.   .debug_frame    0 : { *(.debug_frame) }
  188.   .debug_str      0 : { *(.debug_str) }
  189.   .debug_loc      0 : { *(.debug_loc) }
  190.   .debug_macinfo  0 : { *(.debug_macinfo) }
  191.   /* SGI/MIPS DWARF 2 extensions */
  192.   .debug_weaknames 0 : { *(.debug_weaknames) }
  193.   .debug_funcnames 0 : { *(.debug_funcnames) }
  194.   .debug_typenames 0 : { *(.debug_typenames) }
  195.   .debug_varnames  0 : { *(.debug_varnames) }
  196.   /* DWARF 3 */
  197.   .debug_pubtypes 0 : { *(.debug_pubtypes) }
  198.   .debug_ranges   0 : { *(.debug_ranges) }
  199.   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
  200.   /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
  201. }
  202.